<template>
  <van-config-provider :theme-vars="themeVars">
    <router-view></router-view>
  </van-config-provider>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
const router = useRouter()
const themeVars = {
  buttonPrimaryBorderColor: '#FF5E00',
  buttonPrimaryBackgroundColor: '#FF5E00',
  buttonDefaultHeight: '50px',
  buttonNormalFontSize: '20px',
  tabbarHeight: '60px',
  searchContentBackgroundColor: '#F3F3F3',
  navBarHeight: '40px',
  navBarIconColor: '#FF5E00',
  tabsBottomBarWidth: '85px',
  tabTextColor: '#804F1E',
  tabFontSize: '20px',
  tabActiveTextColor: '#804F1E',
  tabsBottomBarColor: '#FF5E00',
  stepperButtonRoundThemeColor: '#fff',
  stepperInputTextColor: '#6D3805',
  stepperInputFontSize: '20px',
  buttonDangerBackgroundColor: '#A42B32',
  fieldInputTextColor: '#6D3805',
}
router.beforeEach((to,form, next)=>{
  (document as any).title = to.meta.title
  next()
})
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FFF;
}
</style>
